using System;
using System.Collections.Generic;
using System.Linq;

namespace SqlsugarService.Application.DTOs.QualityInspection
{
    /// <summary>
    /// 质检操作结果DTO
    /// </summary>
    public class QualityInspectionOperationResultDto
    {
        /// <summary>
        /// 报工质检Id
        /// </summary>
        public Guid WorkReportInspectionId { get; set; }

        /// <summary>
        /// 质检状态
        /// </summary>
        public string Status { get; set; } = "已质检";

        /// <summary>
        /// 处理时间
        /// </summary>
        public DateTime ProcessedAt { get; set; }

        /// <summary>
        /// 处理者
        /// </summary>
        public string? ProcessedBy { get; set; }

        /// <summary>
        /// 添加的关联数量
        /// </summary>
        public int AddedAssociationsCount { get; set; }

        /// <summary>
        /// 关联ID列表
        /// </summary>
        public List<Guid> AssociationIds { get; set; } = new List<Guid>();

        /// <summary>
        /// 操作是否成功
        /// </summary>
        public bool IsSuccess => AddedAssociationsCount > 0;
    }


}